<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="qrious.js"></script>
</head>
<body>

    <img id="img">

    <script>
        var qr=new QRious({
            element: document.getElementById("img"),
            value: "我爱你",
            size: 300,
            level: "H"
        })
    </script>

</body>
</html>